<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class RoleModel extends Model
{
    use HasFactory;
    use SoftDeletes;
    protected $table='role';
    protected $guarded=[];

    public function roleNode(){
        return $this->belongsToMany(NodeModel::class,'role_node','role_id','node_id');
    }
}
